
module.exports = function (mongoose, Schema) {
    let ObjectId = Schema.Types.ObjectId;
    let schema = new Schema({
        //  头条Id
        nid: {
            type: ObjectId
        },
        //访问日期
        date: String,
        //持续时间
        keepTime: [],
        //访问百分比
        viewPercent: [],
        //访问次数
        viewCount: Number

    }, {collection: 'new_statistics', timestamps: true});

    return mongoose.model('NewStatistics', schema);
};

